<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
<title></title>
    <link href="${pageContext.request.contextPath}/css/style.css" rel="stylesheet" type="text/css" />
    <link href="${pageContext.request.contextPath}/css/style_link.css" rel="stylesheet" type="text/css" />
    <link href="${pageContext.request.contextPath}/css/tab.css" rel="stylesheet" type="text/css" />
    <SCRIPT src="${pageContext.request.contextPath}/js/tab.js" type=text/javascript></SCRIPT>
              <script src="${pageContext.request.contextPath}/js/jquery.js"
	type="text/javascript"></script>
<script
	src="${pageContext.request.contextPath}/js/jquery.ui.draggable.js"
	type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/jquery.alerts.js"
	type="text/javascript"></script>
<link href="${pageContext.request.contextPath}/css/jquery.alerts.css"
	rel="stylesheet" type="text/css" media="screen" />
    
    <script type="text/javascript">
    window.onload = function(){
    	var context = document.getElementById("contextPath").value;
    	$.ajax({
		    url: context+'/web/getHotBusiByType',
		    type: 'POST',
		    data:'type=M',
		    timeout: 15000,
		    error: function(){
		    	jAlert('获取数据失败','消息');
		    },
		    success: function(msg){
		    	if(msg=="获取数据失败"){
		    		$("#headHotBusi").append("获取数据失败");
				}else{
					eval('var obj='+msg);
					var str = "";
					for(var i=0;i<obj.length;i++){
						if(obj.length==1){
							str += "<a href='"+context+obj[i].pageUrl+"' target='_parent'>"+obj[i].productName+"</a>";
						}else{
							if(i=obj.length-1){
								str += "<a href='"+context+obj[i].pageUrl+"' target='_parent'>"+obj[i].productName+"</a>";
							}else{
								str += "<a href='"+context+obj[i].pageUrl+"' target='_parent'>"+obj[i].productName+"</a>|";
							}
						}
					}
					$("#MiddleHotBusi").append(str);
				}
		    }
		});

    }
    
    </script>
</head>
<body><input type="hidden" id="contextPath" value="${pageContext.request.contextPath}" />
    <table width="987" height="41" border="0" cellpadding="0" cellspacing="0" style="margin-bottom:8PX;">
  <tr>
    <td height="41" background="${pageContext.request.contextPath}/images/list/index_1.gif">
    
    
    
    <table width="969" border="0" align="right" cellpadding="0" cellspacing="0">
      <tr>
        <td width="846" height="32" align="left" class="zhonghong"><span class="heise_B_12">推荐业务</span>：<span class="hongse_12" id="MiddleHotBusi"></span></td>
        <td width="86">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>